Beyond Well-designed SPARQL

نویسندگان

  • Mark Kaminski
  • Egor V. Kostylev
چکیده

SPARQL is the standard query language for RDF data. The distinctive feature of SPARQL is the OPTIONAL operator, which allows for partial answers when complete answers are not available due to lack of information. However, optional matching is computationally expensive – query answering is PSPACE-complete. The well-designed fragment of SPARQL achieves much better computational properties by restricting the use of optional matching – query answering becomes coNP-complete. However, well-designed SPARQL captures far from all real-life queries – in fact, only about half of the queries over DBpedia that use OPTIONAL are well-designed. In the present paper, we study queries outside of well-designed SPARQL. We introduce the class of weakly well-designed queries that subsumes well-designed queries and includes most common meaningful non-well-designed queries: our analysis shows that the new fragment captures about 99% of DBpedia queries with OPTIONAL. At the same time, query answering for weakly well-designed SPARQL remains coNP-complete, and our fragment is in a certain sense maximal for this complexity. We show that the fragment’s expressive power is strictly in-between welldesigned and full SPARQL. Finally, we provide an intuitive normal form for weakly well-designed queries and study the complexity of containment and equivalence. 1998 ACM Subject Classification H.2.3 Languages – Query languages

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On tractable query evaluation for SPARQL

Despite much work within the last decade on foundational properties of SPARQL – the standard query language for RDF data – rather little is known about the exact limits of tractability for this language. In particular, this is the case for SPARQL queries that contain the OPTIONALoperator, even though it is one of the most intensively studied features of SPARQL. The aim of our work is to provide...

متن کامل

PRONA: A Plugin for Well-Designed Approximate Queries in Jena

The time of answering a SPARQL query with its all exact solutions in large scale RDF dataset possibly exceeds users’ tolerable waiting time, especially when it contains the OPT operations. It becomes essential to make a trade-off between the query response time and solution accuracy. We propose PRONA an plugin for well-designed approximate queries in Jena, which provides help for users to answe...

متن کامل

The tractability frontier of well-designed SPARQL queries

We study the complexity of query evaluation of SPARQL queries. We focus on the fundamental fragment of welldesigned SPARQL restricted to the AND, OPTIONAL and UNION operators. Our main result is a structural characterisation of the classes of well-designed queries that can be evaluated in polynomial time. In particular, we introduce a new notion of width called domination width, which relies on...

متن کامل

A Static Analysis and Optimization of Semantic Web Queries

Static analysis is a fundamental task in query optimization. In this paper we study static analysis and optimization techniques for SPARQL, which is the standard language for querying Semantic Web data. Of particular interest for us is the optionality feature in SPARQL. It is crucial in Semantic Web data management, where data sources are inherently incomplete and the user is usually interested...

متن کامل

Towards a Positive Query Language for RDF

When querying incomplete databases, the possibility of optionally obtaining information -when availableis a distinctive feature. In particular, this feature is present in SPARQL, the language recommended by the W3C for querying Semantic Web data. Unfortunately, its implementation has been shown to have adverse consequences. Two of the most notable are an increase in evaluation complexity and th...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2016